package com.maiji.cloud.controller;


import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.IdInputDto;
import com.maiji.cloud.request.community.ComReportInputDto;
import com.maiji.cloud.response.BaseOutPutDto;
import com.maiji.cloud.response.shopingmall.FinancialDetailsResData;
import com.maiji.cloud.service.ComReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2019-12-09
 */
@RestController
@RequestMapping("/community")
@Api(value = "论坛模块")
public class ComReportController {

    @Autowired
    ComReportService reportService;

    @PostMapping("/report")
    @ApiOperation("动态举报")
    public BaseOutPutDto<String> report(@RequestBody BaseInputDto<ComReportInputDto> inputDto, @RequestHeader("maijiToken")String maijiToken){

        return reportService.report(inputDto,maijiToken);
    }

}

